package com.njtoyo.taxi.admin.mapper.master.fields.operation_rule;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "二维码配置")
public class QrCodeRate {

    /**
     * group群二维码|contact客服二维码 分开
     */
    @ApiModelProperty(value = "二维码分组")
    @Valid
    private List<Separate> codeCategory;

    @Data
    @Valid
    public static class Separate {

        /**
         * 公司id
         */
        @ApiModelProperty(value = "公司id")
        @Valid
        private Long companyId;

        @ApiModelProperty(value = "群二维码")
        private String groupUrl;


        @ApiModelProperty(value = "客服二维码")
        @NotNull(message = "客服二维码不能为空")
        private String contactUrl;
    }
}
